Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update navigation logic #247

Closed
wants to merge 3 commits into from
Closed

Update navigation logic #247

wants to merge 3 commits into from

Conversation

toji
Copy link
Member

@toji toji commented Jun 22, 2017

Prompted by @kearwood’s comments on #236. Would love your feedback on this! I seriously doubt that I've covered everything that I need to.

Changed navigation detection mechanism from an event to a promise, since that frees us from worrying that pages may miss the event if they register for it too late. Does require some language about not allowing the transition after a certain period of time. Probably need more guarantees to be made there. Also, not sure if I'm a fan of the name getNavigationDevice

One last note: The previous text indicated that we should provide a session but I don't know if that will really work given the type of feature detection and configuration we're talking about attaching to session creation time like output canvases.

toji added 3 commits June 15, 2017 14:12
This change removes any concepts that assume a device may only have a
single active session at a time. This allows multiple non-exclusive
VRSessions to be active at once, which will be important for enabling
various interesting magic window scenarios in the future. With this
change starting an exclusive session suspends the non-exclusive ones,
but doesn’t end them.

IDL Changes:
 - Remove VRDevice.activeSession
 - VRDevice.onsessionchange -> VRSession.onended
Wanted to explicitly state the differences between the two modes and
why you’d want to use one or the other.
@toji toji closed this Jun 29, 2017
toji added a commit that referenced this pull request Jul 11, 2017
Also merged in some navigation concepts from #247
@toji toji mentioned this pull request Jul 11, 2017
toji added a commit that referenced this pull request Jul 11, 2017
Also merged in some navigation concepts from #247
toji added a commit that referenced this pull request Jul 22, 2017
Also merged in some navigation concepts from #247
toji added a commit that referenced this pull request Sep 21, 2017
Also merged in some navigation concepts from #247
toji added a commit that referenced this pull request Nov 1, 2017
Also merged in some navigation concepts from #247
toji added a commit that referenced this pull request Nov 1, 2017
Refactored to use VRSessionRequestController pattern, which should be more
compatible with other cancelable promises in the future.

Also merged in some navigation concepts from #247
toji added a commit that referenced this pull request Nov 1, 2017
Refactored to use VRSessionRequestController pattern, which should be more
compatible with other cancelable promises in the future.

Also merged in some navigation concepts from #247
toji added a commit that referenced this pull request Nov 1, 2017
Refactored to use VRSessionRequestController pattern, which should be more
compatible with other cancelable promises in the future.

Also merged in some navigation concepts from #247
toji added a commit that referenced this pull request Feb 20, 2018
Refactored to use VRSessionRequestController pattern, which should be more
compatible with other cancelable promises in the future.

Also merged in some navigation concepts from #247
@toji toji deleted the navigation branch December 7, 2018 21:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant